/*
案例3:判断一个数为奇/偶数;
 */
package com.itheima.day02;

        import java.util.Scanner;

public class TestClassCase03 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        System.out.println("请输入一个整数:");
        int num=sc.nextInt();

        //判断奇数还是偶数
        if(num%2==0){
            System.out.println(num+"是偶数");
        }else{
            System.out.println(num+"是奇数");
        }
    }
}
